package cn.swust.designpatternlearningplatform.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.sql.Timestamp;
import java.util.List;

@Data
public class TopicWrongDto {
    //题目id
    @JsonProperty("id")
    private Integer topicId;
    //题目内容
    @JsonProperty("content")
    private String topicContent;
    /**
     * 题目类型，多选，单选，判断
     * 1为单选
     * 2为多选
     * 3为判断
     */
    @JsonProperty("topic_type")
    private Integer topicType;
    //题目答案
    @JsonProperty("correct_answer")
    private String topicAnswer;
    //题目难度
    @JsonProperty("difficulty")
    private String topicDifficulty;
    //学生个人选项
    @JsonProperty("my_answer")
    private String ownAnswer;
    //题目选项
    @JsonProperty("options")
    private List<TopicOptionDto> topicOptions;
    //题目图片路径
    @JsonProperty("topic_content_path")
    private String topicContentPath;
    //学生做错时间
    @JsonProperty("problem_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Timestamp problemTime;
}
